home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
K-L
/
LSC HYPER XCMD.cpt
/
Flash.c
next >
Wrap
C/C++ Source or Header
|
1987-11-03
|
735b
|
35 lines
/*
CFlash -- a sample HyperCard user-defined command in C.
©Apple Computer, Inc. 1987
All Rights Reserved.
*/
#include <Types.h>
#include <MemoryMgr.h>
#include <OSUtil.h>
#include <QuickDraw.h>
#include "XCmd.h"
/* **** WARNING: DO NOT USE GLOBAL VARIABLES! **** */
pascal void main(paramPtr)
XCmdBlockPtr paramPtr;
{
short flashCount,again;
GrafPtr port;
Str31 str;
/* First param is flash count. Convert it to a pascal string */
ZeroToPas(paramPtr,(char *)*(paramPtr->params[0]),(StringPtr)&str);
/* Convert the string to a number */
flashCount = StrToNum(paramPtr,&str);
GetPort(&port);
for (again = 1; again <= flashCount; again++)
{
InvertRect(&port->portRect);
InvertRect(&port->portRect);
}
}